package com.example.Service.Iml;

import com.example.Mapper.WuhangMapper;
import com.example.Service.WuhangService;
import com.example.staticlei.married;
import com.example.staticlei.wuhang;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WuhangServiceIml implements WuhangService {
    @Autowired
    private WuhangMapper wuhangMapper;
    @Override
    public wuhang getMessage(String year) {
       return   wuhangMapper.get(year);
    }

    @Override
    public married getPeiOuMessage(String marriage1, String marriage2) {
        String marriage=marriage1+marriage2;
        return wuhangMapper.getPeiOu(marriage);
    }
}
